{% extends 'basepl.html' %}
{% load static %}
{% block head %}
    <title>成绩查询</title>
    <style>
    .tb{
        background-color: #f3f3f4;
        position: absolute;
        width: 980px;
        height: 600px;
        margin: 0 auto auto 100px;
    }
    #r{
        {#border: dodgerblue double;#}
        position: absolute;
    }
    #g{
        {#border: dodgerblue double;#}
        position: absolute;
        margin: 0 auto auto 684px;
    }
    #p{
        margin: 0 auto auto 820px;
        {#border: dodgerblue double;#}
        position: absolute;
    }

    </style>
{% endblock head %}

{% block li %}
    <li><a href="/skebiao">课&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;表</a></li>
    <li><a href="/stuIndex/stuGrade">成&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;绩</a></li>

    <li><a href="/stuIndex/xuanke">选&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;课</a></li>
{% endblock li %}
{% block nav %}
<li><a href="/stuIndex">首页</a></li>
<li><a href="#top">大学课程教学过程管理系统</a></li>
<li><a href="/">切换账号</a></li>
<li><a href="#">&#9658;&#9668;</a></li>
<li><a href="#">关于</a></li>
<li><a href="/">注销</a></li>
{% endblock nav %}
{% block section %}
<div class="tb">
    <table id="r" rules="all" border="1px" cellpadding="8px">
        {% if full %}
            <tr>
                <td width="120px" align="center">科目</td>
                <td width="120px" align="center">最低分</td>
                <td width="120px" align="center">最高分</td>
                <td width="120px" align="center">平均分</td>
                <td width="120px" align="center">人数</td>
                <td width="120px" align="center">成绩</td>
                <td width="120px" align="center">排名</td>
            </tr>
             {% for i in full%}

                 <tr>
                    {% for r in i|slice:':1' %}
                            {% for d in r %}
                            <td align="center">{{ d.cname }}</td>
                            <td align="center">{{ d.low }}</td>
                            <td align="center">{{ d.high }}</td>
                            <td align="center">{{ d.ave }}</td>
                            <td align="center">{{ d.testcnt }}</td>
                            {% endfor %}
                    {% endfor %}
                    {% for g in i|slice:'1:' %}
                        <td align="center">{{ g }}</td>
                    {% endfor %}
                 </tr>
             {% endfor %}
        {% else %}
            <tr><td>暂未查询到成绩信息</td></tr>
        {% endif %}
    </table>
</div>
{% endblock section %}

{% block qd %}

{% endblock qd %}
